package ru.papergames.controller.commands
{
	import org.puremvc.as3.interfaces.INotification;
	import ru.papergames.controller.commands.BaseCommand;
	import ru.papergames.model.proxies.MessagingSocketProxy;
	import ru.papergames.model.proxies.MsgServerAccessProxy;
	import ru.papergames.utils.constants.ConfigKeys;
	

	public class InitializeMessagingCommand extends BaseCommand
	{
		override public function execute(notification:INotification):void {
			
			if ( !facade.hasProxy(MessagingSocketProxy.NAME) ) {				
				facade.registerProxy(new MessagingSocketProxy());
			}
			
			//get access to msg_server
			messagingProxy.getAccessInfo();
			
		}
		
	}
}